#ifndef _MIPI_FUNCTION_H_
#define _MIPI_FUNCTION_H_

#define MIPI_CLK_300M_BPS_DEFAULT_XO 0x1141c
#define MIPI_CLK_350M_BPS_DEFAULT_XO 0x1351c
#define MIPI_CLK_400M_BPS_DEFAULT_XO 0x1051c
#define MIPI_CLK_550M_BPS_DEFAULT_XO 0x1371c
#define MIPI_CLK_800M_BPS_DEFAULT_XO 0x1091c
#define MIPI_CLK_900M_BPS_DEFAULT_XO 0x1291c
#define MIPI_CLK_1200M_BPS_DEFAULT_XO 0x10b1c

#define MIPI_CLK_350M_BPS_360_XO 0x13500
#define MIPI_CLK_550M_BPS_360_XO 0x13700


void mipi_clock_init(const imageChannel_t *image_ch);

void mipi2isp_channel_start(uint32_t mipiID,uint32_t ispID);

void mipi2isp_channel_stop(uint32_t mipiID,uint32_t ispID);

int mipi1_mipi2dma_start(void);

int mipi1_mipi2dma_stop(void);

int mipi_init(int mipi_id);

int mipi_config(const imageChannel_t *image_ch);

int mipi_init_reader(int mipi_id, int isp_id);

int mipi_restart(int mipi_id);

int mipi_config_7022(int mipi_id, imageFormat_t cfg);


#endif

